package com.ht.shop.utils;



import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by jackiechan on 2021/9/2 15:10
 *
 * @author jackiechan
 * @version 1.0
 * @since 1.0
 */

public class SqlUtils {

    private static Properties properties = new Properties();

    static {
        InputStream inputStream = DBUtils.class.getResourceAsStream("/sql.properties");
        try {
            properties.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getSql(String key) {
        return properties.getProperty(key);
    }

}
